﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddCourseInfo.aspx.cs" Inherits="sysadmin_CourseManager_AddCourseInfo"
    ValidateRequest="false" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" Assembly="Telerik.QuickStart" %>
<%@ Register TagPrefix="radU" Namespace="Telerik.WebControls" Assembly="RadUpload.Net2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加课程</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript">
    function openUploadFile(CourseID)
    {
      var StrCourseName=document.form1.txt_CourseName.value;
      window.location="uploadFile.aspx?StrCourseName="+StrCourseName+"&CourseID=0" ;
    }
    </script>

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 
        function AutoColseAler()
        {
            //showFloat();
            //setTimeout("ShowNo()",3000);
        }

    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lbl_InfoTitle" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2"
            style="border-bottom-style: none;">
            <tr>
                <th>
                    <asp:Label ID="lbl_CourseName" runat="server" Text=""></asp:Label>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="txt_CourseName"  name="txt_CourseName" runat="server" Width="245px"
                        MaxLength="100"></asp:TextBox><span style="color: #ff0066;">*</span>
                    <asp:RequiredFieldValidator ID="rfv_CourseName" runat="server" ErrorMessage=""
                        ControlToValidate="txt_CourseName"></asp:RequiredFieldValidator>
                        <asp:Label ID="lab_CouseMsg" ForeColor="Red" Text="" runat="server"></asp:Label>
                        </td>
            </tr>
            <%-- <tr>
                <th>
                    <asp:Label ID="Label3" runat="server" Text="课程包名称"></asp:Label>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="txt_CourseID"  name="txt_CourseID" runat="server" Width="245px"
                        MaxLength="100"></asp:TextBox><span style="color: #ff0066;">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage=""
                        ControlToValidate="txt_CourseID"></asp:RequiredFieldValidator>
                        <asp:Label ID="Label4" ForeColor="Red" Text="" runat="server"></asp:Label>
                        </td>
            </tr>--%>
            <tr>
                <th>
                    <asp:Label ID="lbl_CourseIsRecommend" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:CheckBox ID="cb_CourseIsRecommend" runat="server" /><asp:Label ID="lbl_CourseIsRecommendtxt"
                        runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_CourseImgUrl" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txt_pic" runat="server" Width="360px"></asp:TextBox>
                    <a href="#" onclick="showFloat();"><%=GetLanageValueByKey("AddCourseInfo_lbl_l1", PowerCreator.LMS.Language.LanagetItemType.Page) %></a>
                    <asp:Label ID="lbl_UploadFile" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_Type" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:RadioButton ID="rdbtnBiXiu" runat="server" Text="必修" GroupName="xuanke" Checked="True" />
                    <asp:RadioButton ID="rdbtnXuanXiu" runat="server" Text="选修" GroupName="xuanke" />
                   <%-- <asp:RadioButton ID="rdbtnGongKai" runat="server" Text="公开课" GroupName="xuanke" />--%></td>
            </tr>
            <%--<tr>
                <th>
                    <asp:Label ID="lbl_CourseAllowSelect" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:RadioButton ID="rbtn_Yes" runat="server" Text="必修" GroupName="selectCourse" Checked="True" />
                    <asp:RadioButton ID="rbtn_No" runat="server" Text="选修" GroupName="selectCourse" />
                    </td>
            </tr>--%>
            <tr>
                <th>
                    <asp:Label ID="Label8" runat="server" Text="培训类型"></asp:Label></th>
                <td colspan="3">
                    <!--绑定培训类型-->
                         <asp:CheckBoxList ID="chk_peixunleixing" runat="server" RepeatColumns="6">
                         </asp:CheckBoxList>
                    <!--绑定培训类型 End-->
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="Label9" runat="server" Text="培训形式"></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddl_peixunxingshi" runat="server" Width="250px">
                     <asp:ListItem Text="网络" Value="1"></asp:ListItem>
                     <asp:ListItem Text="面授" Value="2"></asp:ListItem>
                     <asp:ListItem Text="面授加网络" Value="3"></asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_TeacherName" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddl_CourseMostlyTeacher" runat="server" Width="250px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_CourseCode" runat="server" Text=""></asp:Label></th>
                <td>
                    <asp:TextBox ID="txt_CourseCode" runat="server" MaxLength="20" Width="245px"></asp:TextBox></td>
                <th>
                </th>
                <td>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_CoursePeriod" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txt_CoursePeriod" runat="server" Width="245px">0</asp:TextBox><asp:RequiredFieldValidator ID="rfv_txt_CoursePeriod" runat="server" ErrorMessage="*"
                        ControlToValidate="txt_CoursePeriod"></asp:RequiredFieldValidator>
                    <asp:Label ID="lbl_addcourseinfo_msg_courseperiod" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="Label6" runat="server" Text="学分"></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txt_xuefen" runat="server" Width="245px">0</asp:TextBox><asp:RequiredFieldValidator ID="rfv_txt_xuefen" runat="server" ErrorMessage="*"
                        ControlToValidate="txt_xuefen"></asp:RequiredFieldValidator>
                    <asp:Label ID="Label7" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="Label5" runat="server" Text="学年"></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddl_xuenian" runat="server" Width="250px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="Label2" runat="server" Text="学段"></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddl_xueduan" runat="server" Width="250px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_CourseType" runat="server" Text="学科"></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddl_Catalog" runat="server" Width="250px">
                    </asp:DropDownList></td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList3">
            <tr>
                <th valign="top">
                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lbl_TextBox" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <FTB:FreeTextBox ID="FreeTextBox1"  runat="server" Width="600px" ToolbarStyleConfiguration="Office2003"
                        Height="300px" ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|Cut,Copy,Paste,Delete;Undo,Redo,Print,Save|SymbolsMenu,StylesMenu,InsertHtmlMenu|InsertRule,InsertDate,InsertTime|InsertTable,EditTable;InsertTableRowAfter,InsertTableRowBefore,DeleteTableRow;InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableColumn|InsertForm,InsertTextBox,InsertTextArea,InsertRadioButton,InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,EditStyle,InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell">
                    </FTB:FreeTextBox>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <td colspan="4" class="titlefont">
                    <asp:Label ID="lbl_VirtualDirectoryinfo" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_VirtualDirectory" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddlVirtualDirectory" runat="server">
                    </asp:DropDownList>&nbsp;<span class="red">
                        <asp:Label ID="lbl_addcourseinfo_msg_virtual" runat="server" Text="" ForeColor="Red"></asp:Label></span></td>
            </tr>
            <tr>
                <td colspan="4" class="titlefont">
                    <asp:Label ID="lbl_Stateinfo" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th style="height: 1px">
                    <asp:Label ID="lbl_State" runat="server" Text=""></asp:Label></th>
                <td colspan="3" style="height: 1px">
                    <asp:RadioButton ID="rdbtn_stateOK" runat="server" Text="审核" GroupName="state" />
                    <asp:RadioButton ID="rdbtn_stateNO" runat="server" Text="未审核" GroupName="state" Checked="True" /></td>
            </tr>
            <tr>
                <th style="height: 1px">
                    <asp:Label ID="Label1" runat="server" Text="是否有效"></asp:Label></th>
                <td colspan="3" style="height: 1px">
                    <asp:RadioButton ID="rdbtn_Yes" runat="server" Text="有效" GroupName="Used" />
                    <asp:RadioButton ID="rdbtn_No" runat="server" Text="无效" GroupName="Used" Checked="True" /></td>
            </tr>
            <tr>
                <td colspan="4" class="tree-bottom-bg">
                    <asp:Button ID="btn_Save" runat="server" Text="" CssClass="inputBotton2" OnClick="btn_Save_Click" />
                    <asp:Button ID="btn_Reset" runat="server" Text="" CausesValidation="False" CssClass="inputBotton2"
                        OnClick="btn_Back_Click" />
                </td>
            </tr>
        </table>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 32%; left: 47%;
            margin: -200px 0 0 -400px;" >
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                    <tr>
                        <th>
                            &nbsp;</th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_msg_description" runat="server" Text="上传图片..."></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <radu:radprogressmanager id="Radprogressmanager1" width="100%" runat="server" />
                            <radu:radprogressarea id="progressArea1" width="100%" runat="server">
                    </radu:radprogressarea>
                            <br />
                            <asp:FileUpload ID="FileUpload1" runat="server" Width="80%" />
                            <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" Text="上传" OnClick="btnBack_Click" />
                            <br />
                            <asp:Label ID="lbl_FileUpload_msg_FileType" runat="server" Text="" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tree-bottom-bg1">
                            <input id="btn_colse" type="button" value='关闭' class="inputBotton2" onclick="ShowNo()" /> </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
